package org.nuonuo.sdk.model.base;

import java.util.Map;

/**
 * @Version 1.0
 * @Author az
 * @Date 2024-04-01 13:52:45
 * @ClassName NResponse
 * @Description
 */
public class NResponse {
    private String url;
    private Map headers;

    private Map params;

    private String payload;
    private String body;

    public NResponse(String url, Map headers, String payload, String body) {
        this.url = url;
        this.headers = headers;
        this.payload = payload;
        this.body = body.replace(",\"result\":\"\"", "");
    }

    public String getUrl() {
        return url;
    }

    public Map getHeaders() {
        return headers;
    }

    public Map getParams() {
        return params;
    }

    public void setParams(Map params) {
        this.params = params;
    }

    public String getPayload() {
        return payload;
    }

    public String getBody() {
        return body;
    }
}
